package com.yenlien.traceyun.breed.entity;

import com.yenlien.traceyun.business.entity.TraceScanEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by LiuSha on 2020/9/22.
 * 养殖投入品
 */
@Entity
@Table(name = "t_breed_inputs")
@ApiModel(value = "投入品", description = "投入品对象")
public class BreedInputs extends TraceScanEntity {
    @Column
    @ApiModelProperty(value = "类别")
    private String type;
    @Column
    @ApiModelProperty(value = "品名")
    private String inputsName;
    @Column
    @ApiModelProperty(value = "采购批号")
    private String batch;
    private String source;      // 来源
    @Column
    @ApiModelProperty(value = "数量")
    private String number;
    @Column
    @ApiModelProperty(value = "使用数量")
    private String expend;
    @Column
    private String spec;            //规格
    @Column
    private String specUnits;        //规格单位
    @Column
    @ApiModelProperty(value = "单位")
    private String units;
    @Column
    @ApiModelProperty(value = "投入品图片")
    private String inputsImg;
    @Column
    @ApiModelProperty(value = "生产日期")
    private String producedTime;
    @Column
    @ApiModelProperty(value = "保质期")
    private String expirationDate;
    @Column
    @ApiModelProperty(value = "采购日期")
    private String buyTime;
    @Column
    @ApiModelProperty(value = "供应商id")
    private String supplyId;
    @Column
    @ApiModelProperty(value = "供应商")
    private String supplyName;
    @Transient
    @ApiModelProperty(value = "查询条件")
    private String query;

    public String getSpecUnits() {
        return specUnits;
    }

    public void setSpecUnits(String specUnits) {
        this.specUnits = specUnits;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getSupplyId() {
        return supplyId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public void setSupplyId(String supplyId) {
        this.supplyId = supplyId;
    }

    public String getExpend() {
        return expend;
    }

    public void setExpend(String expend) {
        this.expend = expend;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public String getInputsName() {
        return inputsName;
    }

    public void setInputsName(String inputsName) {
        this.inputsName = inputsName;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public String getInputsImg() {
        return inputsImg;
    }

    public void setInputsImg(String inputsImg) {
        this.inputsImg = inputsImg;
    }

    public String getProducedTime() {
        return producedTime;
    }

    public void setProducedTime(String producedTime) {
        this.producedTime = producedTime;
    }

    public String getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(String expirationDate) {
        this.expirationDate = expirationDate;
    }

    public String getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(String buyTime) {
        this.buyTime = buyTime;
    }

    public String getSupplyName() {
        return supplyName;
    }

    public void setSupplyName(String supplyName) {
        this.supplyName = supplyName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
